package com.github.easyms.common.base;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.github.easyms.common.constant.AuthConstants;
import com.github.easyms.common.constant.GlobalConstants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Leo.Liao
 * 基础实体类
 * @date 2020-04-09 11:20:32
 */
@Data
@ApiModel
public class BaseEntity implements Serializable {

    @ApiModelProperty(value = "数据状态("+ GlobalConstants.DataStatus.ACTIVE +"=启用(默认); "+ GlobalConstants.DataStatus.LOCKED +"=停用; ",example = GlobalConstants.DataStatus.ACTIVE)
    public String status = GlobalConstants.DataStatus.ACTIVE;

    @ApiModelProperty(hidden = true)
    public LocalDateTime createTime;

    @ApiModelProperty(hidden = true)
    public LocalDateTime updateTime;

    @ApiModelProperty(hidden = true)
    public String editUser;

    @ApiModelProperty(hidden = true)
    public Boolean deleted = false;

}
